package com.chuanyang.driverh.mainhome;


import android.os.Bundle;

import com.chuanyang.driverh.R;
import com.chuanyang.driverh.base.BaseTitleActivity;
import com.chuanyang.driverh.mainhome.fragment.CarPlanFragment;

public class CarPlanActivity extends BaseTitleActivity {
    private CarPlanFragment mFragment;
    @Override
    protected int getContentResId() {
        return R.layout.base_single_fragment_activity;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {

    }

    @Override
    protected void initData() {
        setBackImg();
        getTitleTextView().setText("车辆安排");
        getRightTextView().setText("筛选");
        if (mFragment == null) {
            mFragment = new CarPlanFragment();
        }
        getSupportFragmentManager().beginTransaction()
                .add(R.id.single_fragment_content, mFragment).commit();
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void baseGoEnsure() {
        mFragment.filter();

    }
}
